// /**
//  * api接口统一管理
//  */
import { get, post } from './http'

//=============================================================>个人中心

//登录(手机验证码登录)
export const phone_login = p =>post('/user/phone_login',p)
//登录(账号秘密登录)
export const user_login = p =>post('/user/login',p)

//发送验证码
export const send_sms = p =>post('/user/send_sms',p)

//学员报名
export const sign_up = p =>post('/signup/sign_up',p)

//获取机构信息
export const org_detail = p => get('/signup/org_detail',p)

//用户获取档案表
export const getprofileList = (params) => get('/signup/profile_list',params)

//用户获取档案表(单条)
export const profile = (params) => get('/signup/profile',params)

//导入CSV文件
export const updateUserPool = p =>post('/action/update_csv_user',p);

//添加备注信息
export const addDetail = p =>post('/action/edit_note',p)

//管理员 批量审核操作
export const batchCheck = (params) => post('/action/batch_check',params)

//审核
export const check = p =>post('/action/check',p)

//获取科目
export const courselist = () =>get('/signup/course_list')

//导出数据
export const downCsv = p =>post('/action/profile_to_csv',p)

//获取考试时间
// export const examDate = () =>get('/signup/exam_date_list');

//获取机构信息
export const getOrg2 = () => get('action/org_list');

//审核日志
export const stateLog = p =>get('/action/audit_log',p)

//获取学员档案
export const studentList = p =>post('/action/search',p)

//学员获取报考记录
export const userExamReacord = (params) => get('/action/user_exam_reacord',params)

//查看合同
export const viewContract = p =>get('/action/view_contract',p);

//获取机构列表(管理员)
export const org_list = () =>get('/signup/org_list')

//获取机构信息根据org_code
export const getOrg = p => get('/signup/org_detail',p);

//获取公告集合
export const noticeList = () =>get('/signup/user_notice')

//用户编辑档案表
export const edit_profile = p => post('/signup/edit',p);

//机构管理员编辑档案表
export const edit_user_profile = p => post('/action/edit_user_profile',p);

//机构管理员删除档案表
export const delete_user_profile = p => post('/action/delete_profile',p);


